package Menus;

import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;

import Constructions.TorpedoBay;
import FrameWork.Menu;
import Main.SpaceGame;

public class FireMenu extends Menu
{
	int pixXPos = SpaceGame.windowXSize-200;
	int pixYPos = 100;
	int width = 200;
	int height = SpaceGame.windowYSize-100;
	int level = 2;
	public int ttX, ttY;
	boolean cursorRequirement = true;
	public SpaceGame main;
	public TorpedoBay torpedoBay;
	
	public FireMenu(SpaceGame main, TorpedoBay torpedoBay) 
	{
		this.main = main;
		ttX = torpedoBay.getX(); ttY = torpedoBay.getY();
		this.torpedoBay = torpedoBay;
	}
	
	@Override
	public void draw(Graphics g) 
	{
		g.translate(pixXPos, pixYPos);
		
		g.setColor(Color.LIGHT_GRAY);
		g.fillRect(0, 0, width, height);
		g.setColor(Color.DARK_GRAY);
		g.fillRect(5, 5, width-10, height-10);
		
		List<String> strings = new ArrayList<String>();
		List<Color>  colors= new ArrayList<Color>();
		
		colors.add(Color.green);
		strings.add("enter");
		colors.add(Color.cyan);
		strings.add("- Fire Torpedo");
		
		printMultiColorLines(g, strings, colors, 2);
		
		g.translate(-pixXPos, -pixYPos);
	}

	@Override
	public boolean requiresCursor() 
	{
		return cursorRequirement;
	}

	@Override
	public void setRequiresCursor(boolean f) 
	{
		this.cursorRequirement = f;
	}

	@Override
	public int getLevel() 
	{
		return level;
	}
	
}
